﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;

using Hangjing.SQLServerDAL;
using Hangjing.Common;
using Hangjing.Model;

/// <summary>
/// 检查有没有新订单（外卖）,返回外卖订单多少个
/// </summary>
public partial class App_Android_Deliver_CheckHaveNewOrder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string did = Request["DId"];

        Custorder dal = new Custorder();
        OrderCountInfo model = new Custorder().SendDeliverOrderCount(did);
        string msg = "{\"state\":\"1\",\"newordercount\":\"" + model.CountIntValue + "\",\"ordercount\":\"" + 0 + "\",\"ordercountall\":\"" + 0 + "\",\"ExpressOrdercount\":\"" + 0 + "\"}";
        Response.Write(msg);
        Response.End();
    }
}
